import request from '../utils/request';

// 1. 封装获取新闻列表的API
export const getNewsByIdAPI = (channel_id, timestamp = Date.now()) => {
  return request({
    url: '/v1_0/articles',
    params: {
      channel_id,
      timestamp,
    },
  });
};
